package main

type A struct {
	Name string
	age  int
}
type B struct {
	Name  string
	Score float64
}
type C struct {
	A
	B
}
type D struct {
	a A //有名结构体
}

func main() {
	var c C
	c.A.Name = "zhangsan"
	c.B.Name = "lisi"
	var d D
	d.a.Name = "A"
}
